#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>

#include "common/inifile.h"

void* my_malloc(unsigned int s){
	void *x = malloc(s);
	return x;

}
void* my_realloc(void *x, unsigned int s){
	void* t = realloc(x, s);
	return t;
}

int main (int argv, char** argc){
	init_root* x = init_readfile("hello.txt", INI_FILE);
	init_displaycontents(x, stdout);
	
	printf("fvalue for dog %s\n",init_getstring(x, "dog"));

	init_unreadfile(x);

	printf("------------------------\n");
	init_root* y = init_readfile("hello.conf", CONF_FILE);;
	init_displaycontents(y, stdout);
	init_unreadfile(y);

}
